package com.zr.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zr.dao.BaseDao;
import com.zr.dao.OrderDao;
import com.zr.datamodel.OrderDM;
import com.zr.service.OrderService;

import net.sf.json.JSONObject;

@Service("orderService")
public class OrderServiceImpl implements OrderService{
	@Resource
	private BaseDao<OrderDM> baseDao;
	@Resource
	private OrderDao orderDao;
	@Override
	public JSONObject findOrderMsg(int page, int rows) {
		// TODO Auto-generated method stub
		JSONObject obj=new JSONObject();
		obj.put("total",orderDao.findOrderCount());
		obj.put("rows", orderDao.findOrderMsg(page, rows));
		System.out.println(obj);
		return obj;
	}
	
}
